//
//  LeftViewController.m
//  25frames
//
//  Created by xieliang43 on 10/22/15.
//  Copyright © 2015 xieliang. All rights reserved.
//

#import "LeftViewController.h"

@interface LeftViewController ()

@end

@implementation LeftViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)avatarPress:(id)sender {
    LoginViewController *loginCon = [[UIStoryboard storyboardWithName:@"person" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"LoginViewController"];
    UINavigationController *naviCon = [[UINavigationController alloc] initWithRootViewController:loginCon];
    naviCon.navigationBarHidden = YES;
    self.mm_drawerController.centerViewController = naviCon;
    [self.mm_drawerController closeDrawerAnimated:YES completion:nil];
}

- (IBAction)showSetting:(id)sender {
    SettingViewController *settingCon = [[UIStoryboard storyboardWithName:@"Setting" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"setting"];
    UINavigationController *naviCon = [[UINavigationController alloc] initWithRootViewController:settingCon];
    self.mm_drawerController.centerViewController = naviCon;
    [self.mm_drawerController closeDrawerAnimated:YES completion:nil];
}
@end
